package org.geometerplus.fbreader.fbreader;

import org.geometerplus.zlibrary.text.view.style.ZLTextStyleCollection;


public class SetLineSpaceAction
        extends
        FBAction
{
	
	public SetLineSpaceAction(FBReaderApp fbreader) {
		super(fbreader);
	}
	
	@Override
	public boolean isVisible() {
		return true;
	}
	
	@Override
	protected void run(Object... params) {
		int size = (Integer) (params[0]);
		ZLTextStyleCollection.Instance().getBaseStyle().LineSpaceOption.setValue(size);
		Reader.reopenCurrentChapter();
//		Reader.clearTextCaches();
//		Reader.getViewWidget().repaint();
	}
}
